package top.yxqz.tag;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

/**
 * @author Mr.余
 * @date 2022/11/30
 * @package top.yxqz.tag
 */
public class yxqzTagSupport extends TagSupport {
    private  String userName;

    public yxqzTagSupport() {
    }

    public yxqzTagSupport(String userName) {
        this.userName = userName;
    }

    /**
     * 获取
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public int doEndTag() throws JspException {
        System.out.println("（yxqz.top)我爱吃:"+userName);
        return EVAL_PAGE;
    }
}
